package com.ccys.db.dto.doctor.doctorConsultStage;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @program: WhiteCoat
 * @description: ReplacePrescription
 * @author: ZhangJingCan
 * @create: 2024-02-29 16:51
 **/

@Data
public class ReplacePrescriptionDto {

    private Integer status;//": 0,
    private String package_prescriptions;//": null,
    private String booking_id;//": "08aab5e2-a436-4079-abdf-095b513fe882",
    private Boolean add_medication;//": false
    private List<Prescription> prescriptions;

    @Data
    public static class Prescription{
        private String id;//": "b5f0efa2-85f2-4be4-b67d-b27ba105e76b",
        private Integer dosage;//": 0,
        private String dosage_text;//": "DOSAGE",
        private BigDecimal quantity;//": 5.0,
        private Integer refill;//": 0,
        @JsonFormat(pattern = "yyyy/MM/dd")
        @DateTimeFormat(pattern = "yyyy/MM/dd")
        private Date refill_expiry_date;//": "1999/01/01",
        private String patient_instruction;//": "patient_instruction",
        private String pharmacist_instruction;//": "pharmacist_instruction",
        private String frequency;//": "Q8hrly",
        private String what_is_for;//": "",
        private String causes_drowsiness;//": "false",
        private String any_precautions;//": "",
        private BigDecimal duration;//": 3.0,
        private Integer duration_unit;//": 2,
        private BigDecimal uom_quantity;//": 2.0,
        private Boolean prn;//": false,
        private String prn_reason;//": "",
        private Integer unit;//": 12,
        private Boolean is_package;//": false,
        private String package_id;//": null,
        private String step_dose;//": "",
        private Boolean take_complete_course;//": false,
        private String remark;//": "",
        private String product_id;//": null,
        private String product_name;//": null,
        private BigDecimal product_price;//": 0.0,
        private Integer index_order;//": 1,
        private Boolean is_covered_diagnosis;//": false,
        private Boolean remind_patient_to_call_back;//": false
    }

}
